package views;

import javax.swing.JFrame;

import controller.SwitchPanel;

@SuppressWarnings("serial")
public class Mainframe extends JFrame{
	
	private static Mainframe instance;
	
	public static Mainframe getInstance(){
		if(instance == null){
			instance = new Mainframe();
		}
		return instance;
	}

	public Mainframe(){
		
		setVisible(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setResizable(false);
		
		SwitchPanel sp = new SwitchPanel();
	
		add(sp);
		
		sp.switchpanelto("Werknemers");
		
		pack();
	}
}
